home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / web / fweb / fweb-1.40 / configure < prev    next >
Text File  |  1993-10-29  |  17KB  |  696 lines

  1.  
  2.  
  3.  
  4. #!/bin/sh
  5. # Guess values for system-dependent variables and create Makefiles.
  6. # Generated automatically using autoconf.
  7. # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  8.  
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2, or (at your option)
  12. # any later version.
  13.  
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. # GNU General Public License for more details.
  18.  
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program; if not, write to the Free Software
  21. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22.  
  23. # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  24. #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  25. # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  26. # --with-PACKAGE unless this script has special code to handle it.
  27.  
  28.  
  29. for arg
  30. do
  31.   # Handle --exec-prefix with a space before the argument.
  32.   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  33.   # Handle --host with a space before the argument.
  34.   elif test x$next_host = xyes; then next_host=
  35.   # Handle --prefix with a space before the argument.
  36.   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  37.   # Handle --srcdir with a space before the argument.
  38.   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  39.   else
  40.     case $arg in
  41.      # For backward compatibility, also recognize exact --exec_prefix.
  42.      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  43.     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  44.      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  45.     next_exec_prefix=yes ;;
  46.  
  47.      -gas | --gas | --ga | --g) ;;
  48.  
  49.      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  50.      -host | --host | --hos | --ho | --h)
  51.     next_host=yes ;;
  52.  
  53.      -nfp | --nfp | --nf) ;;
  54.  
  55.      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  56.         no_create=1 ;;
  57.  
  58.      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  59.     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  60.      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  61.     next_prefix=yes ;;
  62.  
  63.      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  64.     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  65.      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  66.     next_srcdir=yes ;;
  67.  
  68.      -with-* | --with-*)
  69.        package=`echo $arg|sed 's/-*with-//'`
  70.        # Delete all the valid chars; see if any are left.
  71.        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  72.          echo "configure: $package: invalid package name" >&2; exit 1
  73.        fi
  74.        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  75.  
  76.      *) ;;
  77.     esac
  78.   fi
  79. done
  80.  
  81. trap 'rm -f conftest* core; exit 1' 1 3 15
  82.  
  83. rm -f conftest*
  84. compile='${CC-cc} $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  85.  
  86. # A filename unique to this package, relative to the directory that
  87. # configure is in, which we can look for to find out if srcdir is correct.
  88. unique_file=web/READ_ME.WEB
  89.  
  90. # Set various FWEB environment variables.
  91. if test -z "$CONFIGURE_INI"; then
  92.   CONFIGURE_INI=configure.ini
  93. fi
  94. . $CONFIGURE_INI
  95.  
  96. # Find the source files, if location was not specified.
  97. if test -z "$srcdir"; then
  98.   srcdirdefaulted=yes
  99.   # Try the directory containing this script, then `..'.
  100.   prog=$0
  101.   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  102.   test "X$confdir" = "X$prog" && confdir=.
  103.   srcdir=$confdir
  104.   if test ! -r $srcdir/$unique_file; then
  105.     srcdir=..
  106.   fi
  107. fi
  108. if test ! -r $srcdir/$unique_file; then
  109.   if test x$srcdirdefaulted = xyes; then
  110.     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  111.   else
  112.     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  113.   fi
  114.   exit 1
  115. fi
  116. # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  117. # But we can't avoid them for `..', to make subdirectories work.
  118. case $srcdir in
  119.   .|/*|~*) ;;
  120.   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  121. esac
  122.  
  123. if test -z "$CC"; then
  124.   echo checking for gcc
  125.   saveifs="$IFS"; IFS="${IFS}:"
  126.   for dir in $PATH; do
  127.     test -z "$dir" && dir=.
  128.     if test -f $dir/gcc; then
  129.       CC="gcc"
  130.       break
  131.     fi
  132.   done
  133.   IFS="$saveifs"
  134. fi
  135. test -z "$CC" && CC="cc"
  136.  
  137. # Find out if we are using GNU C, under whatever name.
  138. cat > conftest.c <<EOF
  139. #ifdef __GNUC__
  140.   yes
  141. #endif
  142. EOF
  143. ${CC-cc} -E conftest.c > conftest.out 2>&1
  144. if egrep yes conftest.out >/dev/null 2>&1; then
  145.   echo "  YES"
  146.   _CFLAGS_='-g -O -ansi -pedantic -funsigned-char -Wall'
  147.   GCC=1 # For later tests.
  148. else
  149.   echo "  NO"
  150.   _CFLAGS_='-g'
  151. fi
  152. rm -f conftest*
  153.  
  154. echo checking how to run the C preprocessor...
  155. if test -z "$CPP"; then
  156.   CPP='${CC-cc} -E'
  157.   cat > conftest.c <<EOF
  158. #include <stdio.h>
  159. EOF
  160. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  161. if test -z "$err"; then
  162.   :
  163. else
  164.   CPP=/lib/cpp
  165. fi
  166. rm -f conftest*
  167. fi
  168.  
  169. echo " CPP=$CPP"
  170.  
  171. # Make sure to not get the incompatible SysV /etc/install and
  172. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  173. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  174. # or the AFS install, which mishandles nonexistent args.  (Sigh.)
  175. if test -z "$INSTALL"; then
  176.   echo checking for install
  177.   saveifs="$IFS"; IFS="${IFS}:"
  178.   for dir in $PATH; do
  179.     test -z "$dir" && dir=.
  180.     case $dir in
  181.     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin) ;;
  182.     *)
  183.       if test -f $dir/install; then
  184.     if grep dspmsg $dir/install >/dev/null 2>&1; then
  185.       : # AIX
  186.     else
  187.       INSTALL="$dir/install -c"
  188.       INSTALL_PROGRAM='$(INSTALL)'
  189.       INSTALL_DATA='$(INSTALL) -m 644'
  190.       break
  191.     fi
  192.       fi
  193.       ;;
  194.     esac
  195.   done
  196.   IFS="$saveifs"
  197. fi
  198. INSTALL=${INSTALL-cp}
  199. INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  200. INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  201.  
  202. echo " INSTALL=$INSTALL"
  203. echo " INSTALL_PROGRAM=$INSTALL_PROGRAM"
  204. echo " INSTALL_DATA=$INSTALL_DATA"
  205.  
  206. echo checking for ANSI C header files...
  207. cat > conftest.c <<EOF
  208. #include <stdlib.h>
  209. #include <stdarg.h>
  210. #include <string.h>
  211. #include <float.h>
  212. EOF
  213. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  214. if test -z "$err"; then
  215.   # SunOS string.h does not declare mem*, contrary to ANSI.
  216. echo '#include <string.h>' > conftest.c
  217. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  218. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  219.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  220. cat > conftest.c <<EOF
  221. #include <ctype.h>
  222. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  223. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  224. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  225. int main () { int i; for (i = 0; i < 256; i++)
  226. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  227. exit (0); }
  228.  
  229. EOF
  230. eval $compile
  231. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  232.   echo "  YES"
  233. DEFS="$DEFS -DSTDC_HEADERS=1"
  234. else
  235.   echo "  NO (non-ANSI ctype.h)"
  236.  
  237. fi
  238. rm -f conftest*
  239. else 
  240.   echo "  NO (memchr not declared in string.h)"
  241.  
  242. fi
  243. rm -f conftest*
  244.  
  245. else
  246.   echo "  NO (missing one of <stdlib.h>, <stdarg.h>, <string.h>, or <float.h>)"
  247.  
  248. fi
  249. rm -f conftest*
  250. echo "checking for common stdio.h prototypes..."
  251. echo '#include <stdio.h>' > conftest.c
  252. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  253. if egrep "fputc" conftest.out >/dev/null 2>&1; then
  254.   echo "  YES"
  255. DEFS="$DEFS -DHAVE_STD_PROTOTYPES=1"
  256. else 
  257.   echo "  NO (fputc not prototyped; assuming others such as printf aren't as well)"
  258. fi
  259. rm -f conftest*
  260.  
  261. for hdr in stdlib.h stdarg.h stddef.h string.h memory.h limits.h values.h
  262. do
  263. trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  264. echo checking for ${hdr}...
  265. cat > conftest.c <<EOF
  266. #include <${hdr}>
  267. EOF
  268. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  269. if test -z "$err"; then
  270.   echo "  YES"
  271. DEFS="$DEFS -D${trhdr}=1"
  272. else
  273.   echo "  NO"
  274.  
  275. fi
  276. rm -f conftest*
  277. done
  278.  
  279. for hdr in float.h
  280. do
  281. trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  282. echo checking for ${hdr}...
  283. cat > conftest.c <<EOF
  284. #include <${hdr}>
  285. EOF
  286. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  287. if test -z "$err"; then
  288.   echo "  YES"
  289. DEFS="$DEFS -D${trhdr}=1"
  290. else
  291.   echo "  NO"
  292.  
  293. fi
  294. rm -f conftest*
  295. done
  296.  
  297. # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  298. echo "checking for ANSI ctype.h..."
  299. cat > conftest.c <<EOF
  300. #include <ctype.h>
  301. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  302. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  303. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  304. int main () { int i; for (i = 0; i < 256; i++)
  305. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  306. exit (0); }
  307.  
  308. EOF
  309. eval $compile
  310. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  311.   echo "  YES"
  312. DEFS="$DEFS -DANSI_CTYPE_H=1"
  313. else
  314.   echo "  NO"
  315. fi
  316. rm -f conftest*
  317.  
  318. foundflag=""
  319. echo checking for size_t in
  320. for func in stddef.h sys/types.h
  321. do
  322. echo " ${func}..."
  323. echo "#include <${func}>" > conftest.c
  324. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  325. if egrep "size_t" conftest.out >/dev/null 2>&1; then
  326.   echo "  YES"
  327. foundflag=y
  328. trfunc=`echo size_t | tr '[a-z]' '[A-Z]'`_DEFINED
  329. DEFS="$DEFS -D${trfunc}=1"
  330. break
  331. fi
  332. rm -f conftest*
  333. done
  334. if test -z "$foundflag"
  335. then
  336. echo "  NO"
  337. fi
  338.  
  339. foundflag=""
  340. echo checking for clock_t in
  341. for func in time.h sys/types.h
  342. do
  343. echo " ${func}..."
  344. echo "#include <${func}>" > conftest.c
  345. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  346. if egrep "clock_t" conftest.out >/dev/null 2>&1; then
  347.   echo "  YES"
  348. foundflag=y
  349. trfunc=`echo clock_t | tr '[a-z]' '[A-Z]'`_DEFINED
  350. DEFS="$DEFS -D${trfunc}=1"
  351. break
  352. fi
  353. rm -f conftest*
  354. done
  355. if test -z "$foundflag"
  356. then
  357. echo "  NO"
  358. fi
  359. for func in getenv tempnam tmpnam strerror
  360. do
  361. trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  362. echo checking for ${func}...
  363. cat > conftest.c <<EOF
  364.  
  365. main() { exit(0); } 
  366. t() { 
  367. #ifdef __stub_${func}
  368. choke me
  369. #else
  370. /* Override any gcc2 internal prototype to avoid an error.  */
  371. extern char * ${func}(); ${func}();
  372. #endif
  373.  }
  374. EOF
  375. if eval $compile; then
  376.   echo "  YES"
  377. DEFS="$DEFS -D${trfunc}=1"
  378. else
  379.   echo "  NO"
  380. fi
  381. rm -f conftest*
  382. #endif
  383. done
  384.  
  385. HAVE_GETTIME=""
  386. echo checking for gettimeofday...
  387. cat > conftest.c <<EOF
  388. #include <stdio.h>
  389. main() { exit(0); } 
  390. t() { 
  391. #ifdef __stub_gettimeofday
  392. choke me
  393. #else
  394. /* Override any gcc2 internal prototype to avoid an error.  */
  395. extern char gettimeofday(); gettimeofday();
  396. #endif
  397.  }
  398. EOF
  399. if eval $compile; then
  400.   echo "  YES"
  401. DEFS="$DEFS -DHAVE_GETTIMEOFDAY=1"
  402. HAVE_GETTIME=y
  403. else
  404.   echo "  NO"
  405. fi
  406. rm -f conftest*
  407. #endif
  408.  
  409. if [ ! "$HAVE_GETTIME" ] 
  410. then
  411. for hdr in sys/timeb.h
  412. do
  413. trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  414. echo checking for ${hdr}...
  415. cat > conftest.c <<EOF
  416. #include <${hdr}>
  417. EOF
  418. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  419. if test -z "$err"; then
  420.   echo "  YES"
  421. DEFS="$DEFS -D${trhdr}=1"
  422. else
  423.   echo "  NO"
  424.  
  425. fi
  426. rm -f conftest*
  427. done
  428.  
  429. fi
  430. prog='/* Ultrix mips cc rejects this.  */
  431. typedef int charset[2]; const charset x;
  432. /* SunOS 4.1.1 cc rejects this. */
  433. char const *const *p;
  434. char **p2;
  435. /* HPUX 7.0 cc rejects these. */
  436. ++p;
  437. p2 = (char const* const*) p;'
  438. echo checking for working const...
  439. cat > conftest.c <<EOF
  440.  
  441. main() { exit(0); } 
  442. t() { $prog }
  443. EOF
  444. if eval $compile; then
  445.   echo "  YES"
  446.  
  447. else
  448.   echo "  NO"
  449. DEFS="$DEFS -Dconst="
  450. fi
  451. rm -f conftest*
  452.  
  453. echo "checking for working void..."
  454. cat > conftest.c <<EOF
  455. main()
  456. {
  457. void *p;
  458. void f(void);
  459.  
  460. exit(0);
  461. }
  462. void f(void)
  463. {}
  464.  
  465. EOF
  466. eval $compile
  467. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  468.   echo "  YES"
  469. else
  470.   echo "  NO"
  471. DEFS="$DEFS -DNO_VOID=1"
  472. fi
  473. rm -f conftest*
  474. echo checking for working backslash continuations...
  475. cat > conftest.c <<EOF
  476.  
  477. main() { exit(0); } 
  478. t() { 
  479. int i\\
  480. = 0;
  481.  }
  482. EOF
  483. if eval $compile; then
  484.   echo "  YES"
  485. else
  486.   echo "  NO"
  487. DEFS="$DEFS -DFANCY_SPLIT=1"
  488. fi
  489. rm -f conftest*
  490.  
  491. echo "checking for new-style prototypes..."
  492. cat > conftest.c <<EOF
  493. main(int argc,char *argv[])
  494. {
  495. exit(0);
  496. }
  497.  
  498. EOF
  499. eval $compile
  500. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  501.   echo "  YES"
  502. else
  503.   echo "  NO"
  504. DEFS="$DEFS -DOLD_PROTOTYPES=1"
  505. fi
  506. rm -f conftest*
  507. echo "checking for ANSI sprintf..."
  508. cat > conftest.c <<EOF
  509. #include <stdio.h>
  510. #define TEST "abc"
  511. main()
  512. {
  513. char temp[4];
  514. int n;
  515.  
  516. n = sprintf(temp,TEST);
  517. if(n == strlen(TEST))
  518.   exit(0);
  519. else
  520.   exit(1);
  521. }
  522.  
  523. EOF
  524. eval $compile
  525. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  526.   echo "  YES"
  527. DEFS="$DEFS -DANSI_SPRINTF=1"
  528. else
  529.   echo "  NO (doesn't return number of characters written)"
  530. fi
  531. rm -f conftest*
  532. echo "checking for ANSI sscanf..."
  533. cat > conftest.c <<EOF
  534. #include <stdio.h>
  535. main()
  536. {
  537. char temp[] = "{12}{{1.11}{5}}{10}";
  538. int n;
  539. char smodno[10], smodno0[10], spageno[10], ssecno[10];
  540. n = sscanf(temp,"%*c%[^}]%*3c%[^}]%*2c%[^}]%*3c%[^}]",
  541.        smodno, ssecno, spageno, smodno0);
  542. if(n != 4) exit(1);
  543. if(strcmp(smodno,"12") || strcmp(ssecno,"1.11") || strcmp(spageno,"5")
  544.         || strcmp(smodno0,"10")) 
  545.     exit(2);
  546. exit(0);
  547. }
  548.  
  549. EOF
  550. eval $compile
  551. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  552.   echo "  YES"
  553. DEFS="$DEFS -DANSI_SSCANF=1"
  554. else
  555.   echo "  NO (doesn't handle scansets correctly)"
  556. fi
  557. rm -f conftest*
  558. if test -n "$prefix"; then
  559.   test -z "$exec_prefix" && exec_prefix='${prefix}'
  560.   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  561. fi
  562. if test -n "$exec_prefix"; then
  563.   prsub="$prsub
  564. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%\
  565. exec_prefix\\1=\\2$exec_prefix%"
  566. fi
  567.  
  568. trap 'rm -f config.status; exit 1' 1 3 15
  569. echo creating config.status
  570. rm -f config.status
  571. cat > config.status <<EOF
  572. #!/bin/sh
  573. # Generated automatically by configure.
  574. # Run this file to recreate the current configuration.
  575. # This directory was configured as follows,
  576. # on host `(hostname || uname -n) 2>/dev/null`:
  577. #
  578. # $0 $*
  579.  
  580. for arg
  581. do
  582.   case "\$arg" in
  583.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  584.     exec /bin/sh $0 $* ;;
  585.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  586.   esac
  587. done
  588.  
  589. trap 'rm -f web/defaults.mk web/custom.h; exit 1' 1 3 15
  590. CC='$CC'
  591. CPP='$CPP'
  592. INSTALL='$INSTALL'
  593. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  594. INSTALL_DATA='$INSTALL_DATA'
  595. _CFLAGS_='$_CFLAGS_'
  596. _COMPILE_='$_COMPILE_'
  597. _COMPILER_='$_COMPILER_'
  598. _FTANGLE2_='$_FTANGLE2_'
  599. _FTANGLE3_='$_FTANGLE3_'
  600. _FWEAVE2_='$_FWEAVE2_'
  601. _FWEAVE3_='$_FWEAVE3_'
  602. _HOME_MACHINE_='$_HOME_MACHINE_'
  603. _HWEB_='$_HWEB_'
  604. _LDFLAGS_='$_LDFLAGS_'
  605. _LINK_='$_LINK_'
  606. _LIBS_='$_LIBS_'
  607. _LOCAL_DEFS_='$_LOCAL_DEFS_'
  608. _MACHINE_='$_MACHINE_'
  609. _MAKE_='$_MAKE_'
  610. _MV_='$_MV_'
  611. _O_='$_O_'
  612. _OBJ_='$_OBJ_'
  613. _OPTIMIZE_='$_OPTIMIZE_'
  614. _PART1_='$_PART1_'
  615. _PART2_='$_PART2_'
  616. _PART3_='$_PART3_'
  617. _PRINT_DVI_='$_PRINT_DVI_'
  618. _RESERVED2_='$_RESERVED2_'
  619. _RM_='$_RM_'
  620. _TERMCAP0_='$_TERMCAP0_'
  621. _TOUCH_='$_TOUCH_'
  622. _UNSIGNED_CHAR_='$_UNSIGNED_CHAR_'
  623. LIBS='$LIBS'
  624. srcdir='$srcdir'
  625. DEFS='$DEFS'
  626. prefix='$prefix'
  627. exec_prefix='$exec_prefix'
  628. prsub='$prsub'
  629. EOF
  630. cat >> config.status <<\EOF
  631.  
  632. top_srcdir=$srcdir
  633. for file in .. web/defaults.mk web/custom.h; do if [ "x$file" != "x.." ]; then
  634.   srcdir=$top_srcdir
  635.   # Remove last slash and all that follows it.  Not all systems have dirname.
  636.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  637.   if test "$dir" != "$file"; then
  638.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  639.     test ! -d $dir && mkdir $dir
  640.   fi
  641.   echo creating $file
  642.   rm -f $file
  643.   if test "$file" = web/defaults.mk; then
  644.    cmnt_begin="#"
  645.    cmnt_end=
  646.   else
  647.    cmnt_begin="/*"
  648.    cmnt_end=" */"
  649.   fi
  650.    echo "$cmnt_begin Generated automatically from `echo $file|sed 's|.*/||'`.in by configure.$cmnt_end" > $file
  651.   sed -e "
  652. $prsub
  653. s%@CC@%$CC%g
  654. s%@CPP@%$CPP%g
  655. s%@INSTALL@%$INSTALL%g
  656. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  657. s%@INSTALL_DATA@%$INSTALL_DATA%g
  658. s%@_CFLAGS_@%$_CFLAGS_%g
  659. s%@_COMPILE_@%$_COMPILE_%g
  660. s%@_COMPILER_@%$_COMPILER_%g
  661. s%@_FTANGLE2_@%$_FTANGLE2_%g
  662. s%@_FTANGLE3_@%$_FTANGLE3_%g
  663. s%@_FWEAVE2_@%$_FWEAVE2_%g
  664. s%@_FWEAVE3_@%$_FWEAVE3_%g
  665. s%@_HOME_MACHINE_@%$_HOME_MACHINE_%g
  666. s%@_HWEB_@%$_HWEB_%g
  667. s%@_LDFLAGS_@%$_LDFLAGS_%g
  668. s%@_LINK_@%$_LINK_%g
  669. s%@_LIBS_@%$_LIBS_%g
  670. s%@_LOCAL_DEFS_@%$_LOCAL_DEFS_%g
  671. s%@_MACHINE_@%$_MACHINE_%g
  672. s%@_MAKE_@%$_MAKE_%g
  673. s%@_MV_@%$_MV_%g
  674. s%@_O_@%$_O_%g
  675. s%@_OBJ_@%$_OBJ_%g
  676. s%@_OPTIMIZE_@%$_OPTIMIZE_%g
  677. s%@_PART1_@%$_PART1_%g
  678. s%@_PART2_@%$_PART2_%g
  679. s%@_PART3_@%$_PART3_%g
  680. s%@_PRINT_DVI_@%$_PRINT_DVI_%g
  681. s%@_RESERVED2_@%$_RESERVED2_%g
  682. s%@_RM_@%$_RM_%g
  683. s%@_TERMCAP0_@%$_TERMCAP0_%g
  684. s%@_TOUCH_@%$_TOUCH_%g
  685. s%@_UNSIGNED_CHAR_@%$_UNSIGNED_CHAR_%g
  686. s%@LIBS@%$LIBS%g
  687. s%@srcdir@%$srcdir%g
  688. s%@DEFS@%$DEFS%
  689. " $top_srcdir/${file}.in >> $file
  690. fi; done
  691.  
  692. EOF
  693. chmod +x config.status
  694. test -n "$no_create" || ./config.status
  695.  
  696.